package com.dfrz.ch08;

/**
 * 作者：wangmaokang
 * 日期: 2020/10/12 21:52
 * 描述:
 */
public class AddOperation {

    public int add(int x,int y){

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        int c=x+y;

        return c;

    }

//    除以

    public Integer divide(int i,int z){
//        if (z==0){
//            return null;
//        }
        return i/z;
    }

    public int subtract(int x,int y){return x-y;}

    public int listTest(){

        int[] ints=new int[]{1,2,3};

        return ints[3];
    }
}
